package com.example.gsf.myapplication;

import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.v7.app.ActionBarActivity;

import com.oneapm.agent.android.OneApmAgent;
import com.oneapm.agent.android.module.analysis.OneApmAnalysis;

/**
 * Created by gsf on 16/3/21.
 */
public class BaseActivity extends ActionBarActivity {


    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    protected void onPause() {
        super.onPause();
        OneApmAnalysis.onPause();
    }

    @Override
    protected void onResume() {
        super.onResume();
        OneApmAnalysis.onResume();
    }

    @Override
    public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
        OneApmAgent.init(this).setToken("2245604327BC88752661BF5EAEA4791C60").start();
    }


}
